import { mergeConfig } from 'vite';
import baseProdConfig from './vite.config.prod';

export default mergeConfig(
  {
    build: {
      // cssCodeSplit: true,
      // emptyOutDir: true,
      // sourcemap: false,
      assetsDir: './assets', // 默认 assets
      // outDir: `dist/main/`, // 输出到dist
      // rollupOptions: {
      //   input: resolve(__dirname, 'index.html'),
      //   output: {
      //     compact: true,
      //     entryFileNames: 'assets/js/[name]-[hash].js',
      //     chunkFileNames: 'assets/js/[name]-[hash].js',
      //     assetFileNames: 'assets/[ext]/[name].[ext]',
      //   },
      // },
      minify: false,
    },
  },
  baseProdConfig('')
);

//  @arco-themes/vue-zr-tech
